package com.fivefu.core.hillstone.dto.request;

import com.fivefu.base.common.utils.str.StrUtils;

public class RealTimeMonitorURIDto {

    /**
     * 通道编码
     */
    private String channelId;

    /**
     * 码流类型，0:主码流 1:辅流1 2:辅流2。默认为0主码流
     */
    private int subType;

    /**
     * 协议类型，本级平台支持RTSP、FLV_HTTP、HLS、RTMP四种，下级平台只支持 RTSP。默认RTSP。
     */
    private String scheme;

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public int getSubType() {
        return subType;
    }

    public void setSubType(int subType) {
        this.subType = subType;
    }

    public String getScheme() {
        return scheme;
    }

    public void setScheme(String scheme) {
        this.scheme = scheme;
    }

    public String getParam() {
        return "?channelId=" + channelId + "&subType=" + StrUtils.isCheckNull(String.valueOf(subType))
                + "&scheme=" + StrUtils.isCheckNull(scheme);
    }
}
